<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分公司财务报表</title>
</head>
<body>
	<table align="center" bgcolor="#13EEF0" style="width: 1000px;margin-top: 100px;" border="1">
		<caption>涉税推广情况周报</caption>
		<tr>
			<th></th>
			<th colspan="3">一般纳税人</th>
			<th colspan="3">混营户</th>
			<th colspan="3">小规模</th>
		</tr>
		<tr>
			<th style="width: 100px;">地区</th>
			<th style="width: 100px;">航信新上一般纳税人户数（累计值）</th>
			<th style="width: 100px;">新上一般纳税人总户数</th>
			<th style="width: 100px;">新上一般纳税人总户数中航信占比（%）（累计值）</th>
			<th style="width: 100px;">使用航信产品的混营户户数（累计值）</th>
			<th style="width: 100px;">混营户总户数</th>
			<th style="width: 100px;">混营户航信占比（%）（累计值）</th>
			<th style="width: 100px;">航信新上小规模纳税人户数（累计值）</th>
			<th style="width: 100px;">新上小规模纳税人总户数</th>
			<th style="width: 100px;">新上小规模纳税人总户数中航信占比（%）（累计值）</th>
		</tr>
		<s:iterator value="#request.filiale" var="j">
		<s:iterator value="#request.list" id="column">
		<s:set name="total" value="#column.value.size"/>
		<tr>
		<s:iterator value="#column.value" var="i">
		<td>${j.address }</td>
		
		<s:if test="#i.address.address==#j.address">
		<s:if test="#i.userType.name=='一般纳税人'">
				<td><s:property value="newNumber"/> </td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</s:if>
			<s:elseif test="#i.userType.name=='混合户'">
				<td><s:property value="newNumber"/></td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</s:elseif>
			<s:else>
				<td><s:property value="newNumber"/></td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</s:else>
		</s:if>
		</s:iterator>
			</tr>
		</s:iterator>
		</s:iterator>
		
		
		
<%-- 		<s:iterator value="#request.list" id="column">
		<s:set name="total" value="#column.value.size"/>
		<s:iterator value="#column.value" status="i">
		<tr>
		<th>
			<table>
			<tr><th><s:property value="address.address"/></th></tr>
			</table>
		</th>
		<s:if test="#i.userType.name=='一般纳税人'">
		<th>
			<table>
			<tr>
				<td><s:property value="newNumber"/> </td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</tr>
			</table>
		</th>
		</s:if>
		<s:if test="#i.userType.name=='混合户'">
		<th>
			<table>
			<tr>
				<td><s:property value="newNumber"/></td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</tr>
			</table>
		</th>
		</s:if>
		<s:if test="#i.userType.name=='小规模'">
		<th>
			<table>
			<tr>
				<s:else>
				<td><s:property value="newNumber"/></td>
				<td><s:property value="newTotal"/></td>
				<td><s:property value="manPercentum"/></td>
			</s:else>	
			</tr>
			</table>
		</th>
		</s:if>
			</tr>
		</s:iterator>
		</s:iterator> --%>
	</table>
</body>
</html>